﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace condortravel.operaciones.entities.Attributes
{
    public class DataColumnFileAttribute : Attribute
    {
        private DataTypeEmum dataType;
        private Int32 size;
        private bool required;
        private bool primaryKey;
        private String messageError;
        public bool PrimaryKey
        {
            get { return primaryKey; }
            set { primaryKey = value; }
        }

        public bool Required
        {
            get { return required; }
            set { required = value; }
        }

        public DataTypeEmum DataType
        {
            get { return dataType; }
            set { dataType = value; }
        }
        public Int32 Size
        {
            get { return size; }
            set { size = value; }
        }

        public DataColumnFileAttribute(DataTypeEmum dataType, Int32 size, bool required, bool primaryKey)
        {
            this.dataType = dataType;
            this.size = size;
            this.required = required;
            this.primaryKey = primaryKey;
        }

    }

    public enum DataTypeEmum
    {
        Integer = 0,
        String = 1,
        Long = 2,
        Fecha=3,
        Hora=4
    }

}
